package com.yztc.yidoutang.http;

import com.yztc.yidoutang.bean.DaRenBean;
import com.yztc.yidoutang.bean.DanPinBean;
import com.yztc.yidoutang.bean.HotSearchBean;
import com.yztc.yidoutang.bean.QuanWuBean;
import com.yztc.yidoutang.bean.QuanWuListBean;
import com.yztc.yidoutang.bean.TuPianBean;

import java.util.Map;

import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * Created by My on 2016/10/18.
 */

public interface RetrofitService {

    @GET("global/hotsearch")
    Observable<HotSearchBean> getHotSearchBean();

    @GET("case/searchphoto?")
    Observable<TuPianBean> getTuPianBean(@QueryMap() Map<String, String> map);

    @GET("case/search?")
    Observable<QuanWuBean> getQWBean(@QueryMap() Map<String, String> map);

    @GET("community/searchguide?")
    Observable<DaRenBean> getDRBean(@QueryMap() Map<String, String> map);

    @GET("sharing/search")
    Observable<DanPinBean> getDPBean(@Query("q") String querywords);
}
